package com.dubbo.demo.config;

import com.dubbo.demo.properties.PeopleProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: yidujun
 * @create: 2021/11/11 15:46
 */
@Configuration
@EnableConfigurationProperties(PeopleProperties.class)
public class PeopleConfig {

    private final PeopleProperties peopleProperties;

    public PeopleConfig(PeopleProperties peopleProperties) {
        this.peopleProperties = peopleProperties;
    }

    public PeopleProperties getPeopleProperties() {
        return peopleProperties;
    }
}
